# 自定义过滤器
from django.template import Library

register = Library()


@register.filter
def mod(num):
	"""num是否为偶数"""
	return num % 2 == 0
